import * as actionTypes from './actionTypes';

const defaultState = {
	courseData: []
};

export default (state = defaultState, action) => {
	switch(action.type) {
		case actionTypes.Get_Denges_Course:
			const newState = JSON.parse(JSON.stringify(state)) 
			newState.courseData = action.data
			// console.log(newState, '......')
			return newState;
			// return state.merge({
			// 	courseData: fromJS(action.data)
			// });
			// return {courseData: newState.courseData}
		default:
			return state;
	}
}